package arina.university.model;

import java.util.LinkedList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: user
 * Date: 15.11.13
 * Time: 13:55
 * To change this template use File | Settings | File Templates.
 */
public class Teacher {
    String name;
    List<Subject> subjects = new LinkedList<Subject>();
    List<Group> groups = new LinkedList<Group>();

    public Teacher(String name){
        this.name = name;
    }

    public String getName(){
        return name;
    }

    public void addSubject(Subject subject){
        this.subjects.add(subject);
    }

    public void addGroup(Group group){
        this.groups.add(group);
    }
}
